public class Object01{
	public static void main(String[] args) {
		//实例化一只猫
		Cat cat1= new Cat();
		cat1.name = "小白";
		cat1.color = "小白";
		cat1.age = 3;

		//创建了第二只猫
		Cat cat2 = new Cat();
		cat2.name = "小花";
		cat2.age = 100;
		cat2.color  = "花色";

		//访问对象的属性
		System.out.println("第一只猫的属性:"+"名字："+cat1.name+" "+"年龄:"+
			" "+cat1.age+" "+"颜色："+cat1.color);
		System.out.println("第二只猫的属性"+"名字"+cat2.name+"年龄"+
			cat2.age+"颜色"+cat2.color);

	}
}

//定义一个猫类
class Cat{
	//属性
	String name; //名字
	String color;//颜色
	int age;//年龄
}
